export default [
  //常用
  {
    path: '/',
    meta: {auth: false},
    component: resolve => require(['@/views/Home'], resolve)
  },
  {
    path: '/login',
    component: resolve => require(['@/views/user/Login'], resolve)
  },
  //主面板
  {
    path: '/home',
    meta: {auth: false},
    component: resolve => require(['@/views/Home'], resolve)
  },
  {
    path: '/circle',
    component: resolve => require(['@/views/circle/CircleIndex'], resolve),
    children: [
      {
        path: '',
        component: resolve => require(['@/views/circle/CircleLeft'], resolve)
      },
      {
        path: 'left',
        component: resolve => require(['@/views/circle/CircleLeft'], resolve)
      },
      {
        path: 'right',
        component: resolve => require(['@/views/circle/CircleRight'], resolve)
      }
    ]
  },
  {
    path: '/user/center',
    name: 'user-center',
    component: resolve => require(['@/views/user/UserCenter'], resolve)
  },
  //产品类
  {
    path: '/product/list/:type',
    name: 'product-list',
    meta: {auth: false},
    component: resolve => require(['@/views/product/ProductList'], resolve)
  },
  {
    path: '/product/dtl/:pid',
    name: 'product-dtl',
    meta: {auth: false},
    component: resolve => require(['@/views/product/Product'], resolve),
  },
  {
    path: '/product/descript/:pid',
    name: 'product-descript',
    meta: {auth: false},
    component: resolve => require(['@/views/product/ProductDescript'], resolve)
  },
  {
    path: '*', //其他页面，强制跳转到登录页面
    redirect: '/login'
  }
]
